home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus Special 25 / AMIGAplus Sonderheft 25 (2000)(Falke)(DE)(Track 1 of 4)[!].iso / PublicDomain / Spiele / CCastle / InstallDisk < prev    next >
Text File  |  1980-04-04  |  4KB  |  143 lines

  1. failat 6
  2. echo "ChaosCatle - Autoboot install script"
  3. echo ""
  4. echo "This script will install ChaosCastle on a floppy-disk which can be autobooted without the Workbench."
  5. echo ""
  6. echo "(Do not use this script to install the game on your hard disk !"
  7. echo "To install on hard disk, just copy the drawer containing the game at the right place.)"
  8. echo ""
  9. echo "This script will only run if:"
  10. echo "- You booted from a Workbench floppy-disk or from a fully installed hard-disk"
  11. echo "  For registered user: boot from the system cointaining the keyfile"
  12. echo "- You have an empty floppy-disk labelled 'CCastle' ready, the game will be installed there"
  13. echo "- You have launched the script from the drawer containing the game (it should not be in the ram disk)"
  14. echo "If this is not the case, (or if you don't want to make the installation), press 'n' now and restart the script only once you are ready."
  15. echo "If you are ready, press 'y' (and return)"
  16. ask "Continue (y/n) ? "
  17. IF NOT Warn
  18.  Quit 10
  19. Endif
  20. echo ""
  21. echo "Loading required commands..."
  22. If EXISTS c:If
  23.  Resident c:If pure
  24. EndIf
  25. IF EXISTS c:EndIf
  26.  Resident c:EndIf pure
  27. EndIf
  28. If EXISTS c:Else
  29.  Resident c:Else pure
  30. EndIf
  31. If EXISTS c:Echo
  32.  Resident c:Echo pure
  33. Endif
  34. IF EXISTS c:Copy
  35.  Resident c:Copy pure
  36. Endif
  37. If EXISTS c:delete
  38.  Resident c:Delete pure
  39. Endif
  40. If EXISTS c:Else
  41.  Resident c:Else pure
  42. EndIf
  43. If EXISTS c:Makedir
  44.  Resident c:Makedir pure
  45. EndIf
  46. If EXISTS c:Assign
  47.  Resident c:Assign pure
  48. EndIf
  49. echo "Making temporary drawer in ram:"
  50. If EXISTS ram:CCastle
  51.  delete > NIL: ram:CCastle all
  52. EndIf
  53. makedir ram:CCastle
  54. makedir ram:CCastle/c
  55. makedir ram:CCastle/l
  56. makedir ram:CCastle/libs
  57. makedir ram:CCastle/s
  58. makedir ram:CCastle/CCastle
  59. echo "Copying required system files to ram:"
  60. If EXISTS DEVS:system-configuration
  61.  copy DEVS:system-configuration ram:CCastle
  62. Endif
  63. If EXISTS C:SetPatch
  64.  copy c:SetPatch ram:CCastle/c
  65. EndIf
  66. IF EXISTS C:Assign
  67.  copy c:Assign ram:CCastle/c
  68. Endif
  69. If EXISTS C:cd
  70.  copy c:cd ram:CCastle/c
  71. EndIf
  72. If EXISTS C:run
  73.  copy c:run ram:CCastle/c
  74. Endif
  75. If EXISTS C:endcli
  76.  copy c:endcli ram:CCastle/c
  77. Endif
  78. If EXISTS libs:icon.library
  79.  copy libs:icon.library ram:CCastle/libs
  80. Endif
  81. IF EXISTS libs:diskfont.library
  82.  copy libs:diskfont.library ram:CCastle/libs
  83. Endif
  84. IF EXISTS libs:lowlevel.library
  85.  copy libs:lowlevel.library ram:CCastle/libs
  86. Endif
  87. IF EXISTS libs:asl.library
  88.  copy libs:asl.library ram:CCastle/libs
  89. EndIf
  90. copy > NIL: libs:68???.library ram:CCastle/libs
  91. echo "Copying system files from ram: to disk CCastle:"
  92. copy > NIL: ram:CCastle CCastle: all
  93. echo "Cleaning up ram:"
  94. delete > NIL: ram:CCastle all
  95. echo "Copying game program to ram:"
  96. makedir ram:CCastle
  97. copy > NIL: #? ram:CCastle all
  98. echo "Copying game program from ram: to disk CCastle:"
  99. copy > NIL: ram:CCastle CCastle:CCastle all
  100. copy > NIL: ram:CCastle/startup-sequence CCastle:s
  101. echo "Cleaning up ram:"
  102. delete > NIL: ram:CCastle all
  103. echo "Copying your keyfile (if you are registered)..."
  104. If EXISTS S:ChaosCastle.key
  105.  copy S:ChaosCastle.key CCastle:S
  106. EndIf
  107. If EXISTS L:ChaosCastle.key
  108.  copy L:ChaosCastle.key CCastle:S
  109. EndIf
  110. Assign >NIL: KEYS: EXISTS
  111. IF NOT Warn
  112.  If EXISTS KEYS:ChaosCastle.key
  113.   copy KEYS:ChaosCastle.key CCastle:S
  114.  EndIf
  115. EndIf
  116. Assign >NIL: KEYFILES: EXISTS
  117. IF NOT Warn
  118.  If EXISTS KEYFILES:ChaosCastle.key
  119.   copy KEYFILES:ChaosCastle.key CCastle:S
  120.  Endif
  121. EndIf
  122. If EXISTS CCastle:S/ChaosCastle.key
  123.  echo "keyfile copied"
  124. Else
  125.  echo "no keyfile found"
  126. EndIf
  127. If EXISTS c:Install
  128.  Resident c:Install pure
  129.  echo "c:Install loaded (resident)"
  130. EndIf
  131. Echo "About to execute 'Install DF0:' to install the bootblock..."
  132. Echo "IMPORTANT: Now put your CCastle floppy-disk in drive DF0:"
  133. Echo "THEN press 'y' to continue, or 'n' to skip this part"
  134. Ask "Install bootblock in drive DF0: (y/n) ? "
  135. IF WARN
  136.  Install df0:
  137.  echo "Bootblock installed"
  138. Else
  139.  Echo "Bootblock not installed. You may need to do it manually"
  140. Endif
  141. echo ""
  142. Ask "Installation completed. Press return"
  143.